package com.kariqu.cldld.wss;

import io.netty.handler.codec.http.websocketx.CloseWebSocketFrame;

public class CloseFramer extends CloseWebSocketFrame {
    private CloseFramer(WebsocketStatusCode code)
    {
        super(code.getStatusCode(), code.getStr());
    }

    public static CloseFramer normalClose()
    {
        return new CloseFramer(WebsocketStatusCode.NORMAL_CLOSE);
    }

    public static CloseFramer repeatedLoginClose()
    {
        return new CloseFramer(WebsocketStatusCode.REPEATED_LOGIN_CLOSE);
    }

}
